package com.example.yogurtsystem.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2021/8/15
 */
@Data
@NoArgsConstructor
public class SaveOrUpdateDto implements Serializable {
    /**
     * 主键
     */
//    @NotBlank(message = "点餐记录id不能为空")
    private String id;

    /**
     * 人员id
     */
//    @NotBlank(message = "人员id不能为空")
    private String userId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    private String username;

    /**
     * 选择的饮品id
     */
//    @NotBlank(message = "选择的饮品id不能为空")
    private String drinkId;

    /**
     * 选择的饮料品名
     */
    @NotBlank(message = "饮品名不能为空")
    private String drinkName;

    /**
     * 单价
     */
    private BigDecimal price;
    /**
     * 年当前年-季度，例2021-3
     */
    @NotBlank(message = "年季度不能为空")
    private String yearQuarter;

    private static final long serialVersionUID = 1L;

    public SaveOrUpdateDto(String userId, String username, String drinkId, String drinkName) {
        this.userId = userId;
        this.username = username;
        this.drinkId = drinkId;
        this.drinkName = drinkName;
    }
}
